package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysUser;
import com.cy.pj.sys.pojo.SysUserDeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserDao {
    int updateObject(SysUser entity);
    SysUserDeptVo findObjectById(Integer id);
    int validById(@Param("id")Integer id,@Param("valid")Integer valid,@Param("modifiedUser")String modifiedUser);

    int getRowCount(String username);

    //基于此方法实现当前页记录的数据查询操作。代码如下
    List<SysUserDeptVo> findPageObjects(String username,Integer startIndex,Integer pageSize);

    int insertObject(SysUser entity);

}
